package com.atguigu.array;

import java.util.List;

/**
 * @ClassName MyArraysUtil
 * @DeScription MyArraysUtil
 * @Author 剧情再美终是戏
 * @Date 2019/12/8 8:54
 * @Version 1.0
 **/
public class MyArraysUtil {

    private MyArraysUtil() {
    }

    /**
     * 判断一个list是否为空
     *
     * @param list
     * @return boolean
     * @Author 剧情再美终是戏
     * @Date 2019/12/8
     * @Version 1.0
     **/
    public static boolean isEmpty(List<Object> list) {
        return null == list || list.size() == 0;
    }

    /**
     * 判断一个list是否不为空
     *
     * @param list
     * @return boolean
     * @Author 剧情再美终是戏
     * @Date 2019/12/8
     * @Version 1.0
     **/
    public static boolean notEmpty(List<Object> list) {
        return null != list && list.size() > 0;
    }
}
